/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tcr_mensajeDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression men_id;
	public final StringExpression men_desencriptado;
	public final StringExpression men_encriptado;
	
	public Tcr_mensajeDetachedCriteria() {
		super(orm.Tcr_mensaje.class, orm.Tcr_mensajeCriteria.class);
		men_id = new IntegerExpression("men_id", this.getDetachedCriteria());
		men_desencriptado = new StringExpression("men_desencriptado", this.getDetachedCriteria());
		men_encriptado = new StringExpression("men_encriptado", this.getDetachedCriteria());
	}
	
	public Tcr_mensajeDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tcr_mensajeCriteria.class);
		men_id = new IntegerExpression("men_id", this.getDetachedCriteria());
		men_desencriptado = new StringExpression("men_desencriptado", this.getDetachedCriteria());
		men_encriptado = new StringExpression("men_encriptado", this.getDetachedCriteria());
	}
	
	public Tcr_mensaje uniqueTcr_mensaje(PersistentSession session) {
		return (Tcr_mensaje) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tcr_mensaje[] listTcr_mensaje(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tcr_mensaje[]) list.toArray(new Tcr_mensaje[list.size()]);
	}
}

